package com.jia.interviewPro;

/**
 * 面试题 05.07. 配对交换
 */
public class Pro0507 {
    public int exchangeBits(int num) {
        return ((num & 0xaaaaaaaa) >>1) | ((num & 0x55555555)<<1);
    }
}
